package com.crm.model.system.notic.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("crm_notice")
public class Notice {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String content; //通知内容
    private Integer type; //通知类型,0-转派,1-活动,2-合同
    private Integer tag; //0-未读,1-已读
    private Integer status; //1-未审核,2-审核通过,3-审核失败
    @TableField("user_id")
    private Integer userId; //发信人id
    @TableField("user_name")
    private String userName; //发信人
    @TableField("operation_id")
    private Integer operationId; //操作人Id
    @TableField("operation_name")
    private String operationName; //操作人
    @TableField("redeploy_id")
    private Integer redeployId; //转派Id
    @TableField("contract_id")
    private Integer contractId; //合同Id
    @TableField("activity_id")
    private Integer activityId;
    @TableField("create_time")
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd hh:mm:ss")
    private LocalDateTime createTime;
    @TableField("update_time")
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd hh:mm:ss")
    private LocalDateTime updateTime;

}
